Defining plot scales and axes

The function plenv is used to define the scales and axes for simple graphs. plenv starts a new picture on the next subpage (or a new page if necessary), and defines the ranges of the variables required. The routine will also draw a box, axes, and numeric labels if requested. The syntax for plenv is:

plenv(xmin,xmax,ymin,ymax,just,axis); xmin, xmax (float, input) The left and right limits for the horizontal axis. ymin, ymax (float, input) The bottom and top limits for the vertical axis. just (int, input) This should be zero or one. If just is one, the scales of the x-axis and y-axis will be the same (in units per millimeter); otherwise the axes are scaled independently. This parameter is useful for ensuring that objects such as circles have the correct aspect ratio in the final plot. axis (int, input) axis controls whether a box, tick marks, labels, axes, and/or a grid are drawn.

Note: Logarithmic axes only affect the appearance of the axes and their labels, so it is up to the user to compute the logarithms prior to passing them to plenv and any of the other routines. Thus, if a graph has a 3-cycle logarithmic axis from 1 to 1000, we need to set xmin = log101 = 0.0, and xmax = log101000 = 3.0.

For greater control over the size of the plots, axis labelling and tick intervals, more complex graphs should make use of the functions plvpor, plwind, and plbox described in Chapter [*].